<?php 
/**
 * @file Vlogin.php
 * @author LD <2009-10-28 12:46:35>
 * @package kbao
 * @desc 
 *   安全密码登陆界面
 */

if(!defined('ACCOUNT_INIT')) 
  exit('Access Denied!');

// 全局变量
global $gLD;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>登录个人交易平台</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<style type="text/css">
<!--
.blue1 {color: #8dc3f2;	font-size: 12px;font-weight: bold;}
body {background-color: #8ec2f4;margin:0;}
body,td,th {font-size: 12px;color: #FFFFFF;}
.STYLE2 {color: #8dc3f2; font-size: 14px; font-weight: bold; }
.STYLE3 {color: #FF0000}
-->
</style>
<script language="javascript" type="text/javascript">
	function closeWindow(){
		window.open('','_parent',''); 
  		window.close();
  	}

	// 验证登陆密码
	function valiLogin(){
		var pswd = document.myform.pswd.value;
		if( pswd.length != 8  ){
			alert("密码必须为8位英文或数字字符！");
			return false;
		}
		
		return true;
	}
  	
</script>
</head>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="98">&nbsp;</td>
  </tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr bgcolor="#014075">
        <td height="32" align="center" width="90%"><span class="STYLE2">登录个人交易</span></td>
        <td algin="right"><a href="###" onclick="closeWindow();">&gt;&gt; 关  闭</a></td>
      </tr>
    </table>
<form name="myform" action="?black%20hole=<?php echo $gLD['BlackHole']; ?>&uin=<?php echo $gLD['user_id']; ?>&module=login" method="post" onsubmit="return valiLogin();">
  <input type="hidden" name="action" value="login" />
  <input type="hidden" name="user_id" value="<?php echo $gLD['user_id']; ?>" />
      <table width="550" border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td height="199" align="center" bgcolor="#3676B4"><table width="68%" height="95" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="31" align="right">用户 I D：</td>
                <td align="left"><?php echo $gLD['user_id']; ?></td>
              </tr>
              <tr>
                <td height="30" align="right">用户昵称：</td>
                <td align="left"><?php echo $gLD['user_nick']; ?></td>
              </tr>
              <tr>
                <td width="25%" height="34" align="right">安全密码：</td>
                <td width="75%" align="left">
                  <input type="password" name="pswd" maxlength="8" onkeyup="value=value.replace(/[\W]/g,'')" 
                    onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
                <?php if (!empty($gLD['msg'])){ ?>
				  &nbsp;&nbsp;<span align="right" id="error">Error: <?php echo $gLD['msg']; ?></span>
				  <script type='text/javascript'>alert('<?php echo $gLD['msg']; ?>');</script>
				<?php } ?>
                </td>
              </tr>
              
            </table>
            <table width="39%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="60" align="center"><input type="submit" name="Submit" value=" 登录 " /></td>
                <td align="center"><input type="reset" value=" 取消 " onclick="closeWindow();" /></td>
              </tr>
            </table></td>
        </tr>
      </table>
</form><!-- /登陆结束 -->      
      </td>
  </tr>
</table>
</body>
</html>